home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 27 / CU Amiga Magazine's Super CD-ROM 27 (1998)(EMAP Images)(GB)[!][issue 1998-10].iso / CUCD / Programming / Mesa / src-glut / Smakefile < prev   
Makefile  |  1998-08-02  |  2KB  |  46 lines

  1. # Makefile for GLUT files
  2.  
  3. LIBDIR = /lib
  4.  
  5. LIBSCFLAGS = idlen=63
  6.  
  7. GLUTFILES1 =  glutAddMenuEntry.o               glutAddSubMenu.o\
  8.               glutAttachDetachMenu.o           glutChangeToMenuSubEntry.o\
  9.               glutCreateMenu.o                 glutCreateWindow.o\
  10.               glutDestroyMenu.o                glutDestroyWindow.o\
  11.               glutExtensionSupported.o         glutGet.o
  12. GLUTFILES2 =  glutGetModifiers.o               glutGetSetColor.o\
  13.               glutGetSetMenu.o                 glutGetSetWindow.o\
  14.               glutInit.o                       glutInitDisplayMode.o\
  15.               glutInitWindowPosition.o         glutInitWindowSize.o\
  16.               glutMainLoop.o                   glutPostRedisplay.o
  17. GLUTFILES3 =  glutRemoveMenuItem.o             glutSetWindowTitle.o\
  18.               glutShapes.o                     glutstuff.o\
  19.               glutSwapBuffers.o                glutTeapot.o\
  20.               glutXFunc.o                      glutReshapePositionWindow.o
  21. GLUTFILES = $(GLUTFILES1) $(GLUTFILES2) $(GLUTFILES3)
  22.  
  23. TMP_FILE = T:GlutTMP_SCOPTS
  24.  
  25. # Fetures to make and link a shared library for amiga
  26.  
  27. CC = sc
  28.  
  29. .c.o:
  30.     $(CC) WITH=$(TMP_FILE) $*.c
  31.  
  32. all: AmigaLibrary $(GLUTFILES) DeleteTMP
  33.     @join $(GLUTFILES1) as glutfiles1.o
  34.     @join $(GLUTFILES2) as glutfiles2.o
  35.     @join $(GLUTFILES3) as glutfiles3.o
  36.     oml $(LIBDIR)/GLUT.LIB glutfiles1.o glutfiles2.o glutfiles3.o
  37.     @delete glutfiles1.o
  38.     @delete glutfiles2.o
  39.     @delete glutfiles3.o
  40.  
  41. AmigaLibrary:
  42.     @echo >$(TMP_FILE) "$(LIBSCFLAGS)"
  43.  
  44. DeleteTMP:
  45.     @delete $(TMP_FILE)
  46.